<div class="page_title">    
    <span class="title_icon"><span class="coverflow"></span></span>
    <h3>Provincia</h3>    
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_12">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon list"></span>
                    <h6>Registro de de provincia</h6>
                </div>
                <div class="widget_content">
                    <!--                        <form action="#" method="post" id="regitstraion_form" class="form_container left_label">-->
                    <?php echo $this->Form->create('Provincia', array('id' => 'regitstraion_form', 'class' => 'form_container left_label', 'action'=>'edit')); ?>
                    <ul>


                        <li>
                            <div class="form_grid_12">
                                <label class="field_title" for="name">Provincia<span class="req">*</span></label>
                                <div class="form_input">
                                    <!--<input name="name" id="name" type="text" tabindex="1" class="limiter required small"/>-->
                                    <?php echo $this->Form->text('nombre', array('tabindex' => 1, 'class' => 'required mid')); ?>
                                </div>
                            </div>
                        </li> 

                        <li>
                            <div class="form_grid_12">
                                <label class="field_title">Provincias</label>
                                <div class="form_input">  
                                    <select data-placeholder="Seleccione la alerta..." class="chzn-select full" name="data[Provincia][departamento_id]" tabindex="4" id="cb_dpto">
                                        <option value=""></option>
                                        <?php foreach ($departamento as $a): ?>
                                            <?php if ($this->request->data['Departamento']['id'] == $a['Departamento']['id']): ?>
                                                <option value="<?php echo $a['Departamento']['id'] ?>" selected="selected">
                                                    <?php echo $a['Departamento']['nombre'] ?>
                                                </option>
                                            <?php else: ?>
                                                <option value="<?php echo $a['Departamento']['id'] ?>">
                                                    <?php echo $a['Departamento']['nombre'] ?>
                                                </option>
                                            <?php endif; ?>
                                        <?php endforeach; ?>
                                    </select>                                    
                                </div>
                            </div>
                        </li>
                        
                 
                        <li>
                            <div class="form_grid_12">
                                <div class="form_input">
                                    <button type="submit" class="btn_small btn_blue"><span>Guardar cambios</span></button>
                                    <button type="reset" class="btn_small btn_blue"><span>Limpiar</span></button>
                                </div>
                            </div>
                        </li>                       
                    </ul>
                    </form>
                </div>
            </div>
        </div>           
    </div>
    <span class="clear"></span>
</div>

